<?php
namespace app\agent\controller;

use app\agent\service\AddrService;
use app\common\controller\Addr;

/**
 * 地区管理
 * @module 地区管理
 * @controller 地区
 */
class AddrController extends BaseController
{
	private $addr = null;
	
	public function __construct()
	{
		parent::__construct();
		
		$this->addr = new AddrService();
		
	}

    public function getaddr()
    {
        $addr = new Addr();

        return $addr->getAddr();
	}
	
	/**
	 * @action 地区详情
	 */
	public function detail()
	{
		$request = input('param.');
		
		$data = $this->addr->getViewDetail($request);

		$this->assign('data', $data);
		
		return $this->fetch();
	}
	
}